package com.example.shengyin.dao;

import java.sql.Timestamp;
import java.util.List;
import com.example.shengyin.entity.Admin;
import com.example.shengyin.entity.Page;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Service;

/**
 * AdminMapper接口
 * 
 * @author ruoyi
 * @date 2023-07-29
 */
@Service
public interface AdminMapper
{
    public Admin login(@Param("phone")String phone,@Param("pass")String pass);
    public Admin select(@Param("id")Long id);
    public List<Admin> list(@Param("pagestart")int pagestart, @Param("limit")int limit, @Param("uname")String uname, @Param("phone")String phone,
                            @Param("realname")String realname, @Param("pos")String pos, @Param("roles")String roles,
                            @Param("start") Timestamp start, @Param("end")Timestamp end);
    public int count(@Param("uname")String uname, @Param("phone")String phone,
                     @Param("realname")String realname, @Param("pos")String pos, @Param("roles")String roles,
                     @Param("start") Timestamp start, @Param("end")Timestamp end);
    public int insert(Admin dAdmin);
    public int update(Admin dAdmin);
    public int delete(@Param("id")int id);
    public int deleteByIds(@Param("ids")String ids);
}
